<legend class='hyc-legend'>
    <i class="fa fa-tasks"></i>&nbsp;
    <span>司机账单列表</span>
</legend>
<div class="panel panel-default">
    <div class="panel-heading">司机提现申请列表</div>
    <div class="panel-body">
        <div class="row">
            <div class="col-md-1 text-right top7">账户名称</div>
            <div class="col-md-2">
                <div class="form-group">
                    <input type="text" class="form-control hyc-color" ng-model="cBill.userName" placeholder="账户名称">
                </div>
            </div>
            <div class="col-md-1 text-right top7">手机号</div>
            <div class="col-md-2">
                <div class="form-group">
                    <input type="text" class="form-control hyc-color" ng-model="cBill.phone" placeholder="手机号">
                </div>
            </div>
            <!--<div class="col-md-1 text-right top7">开始时间</div>-->
            <!--<div class="col-md-2">-->
                <!--<div class="form-group">-->
                    <!--<input type="text" class="form-control hyc-color" ng-model="cBill.beginDateParam" placeholder="开始时间" bs-datepicker date-format="yyyy-MM-dd">-->
                <!--</div>-->
            <!--</div>-->
            <!--<div class="col-md-1 text-right top7">结束时间</div>-->
            <!--<div class="col-md-2">-->
                <!--<div class="form-group">-->
                    <!--<input type="text" class="form-control hyc-color" ng-model="cBill.endDateParam" placeholder="结束时间" bs-datepicker date-format="yyyy-MM-dd">-->
                <!--</div>-->
            <!--</div>-->
            <div class="col-md-1 text-right top7">
                账单状态
            </div>
            <div class="col-md-2">
                <div class="form-group">
                    <button type="button" class="btn btn-default admin-select select hyc-width" ng-model="cBill.status" bs-options="billStatus.code as billStatus.name for billStatus in billStatus" bs-select placeholder="---请选择---" max-length-html="个被选中" allText="选中全部" noneText="没有选中">
                    </button>
                </div>
            </div>
            <div class="col-md-3">
                <div class="form-group text-right">
                    <div class="btn btn-default btn-sm btn-warning" ng-click="loadData('query')">查询</div>&nbsp;&nbsp;&nbsp;
                    <div class="btn btn-default btn-sm" ng-click="clearQuery()">重置</div>&nbsp;&nbsp;&nbsp;
                    <!--<div class="btn btn-default btn-sm" ng-click="exportExcel('query')">-->
                        <!--<a style="text-decoration: none; color: inherit;" id="export_excel" target="_blank">导出</a>-->
                    <!--</div>-->
                </div>
            </div>
        </div>
        <table class="table table-bordered" id="table1">
            <tr>
                <th class="text-center">账单编号</th>
                <th class="text-center">账户ID</th>
                <th class="text-center">账户名称</th>
                <th class="text-center">电话</th>
                <th class="text-center">账单金额</th>
                <th class="text-center">开始日期</th>
                <th class="text-center">结束日期</th>
                <th class="text-center">账期</th>
                <th class="text-center">状态</th>
                <th class="text-center">创建时间</th>
                <th class="text-center">操作</th>
            </tr>
            <tr ng-repeat="item in cBills track by $index">
                <td class="text-center">{{item.id}}</td>
                <td class="text-center">{{item.userId}}</td>
                <td class="text-center">{{item.userName}}</td>
                <td class="text-center">{{item.phone}}</td>
                <td class="text-center">&yen;{{item.amount | number:2}}</td>
                <td class="text-center">{{item.beginDate | date:'yyyy-MM-dd HH:mm:ss'}}</td>
                <td class="text-center">{{item.endDate | date:'yyyy-MM-dd HH:mm:ss'}}</td>
                <td class="text-center">周</td>
                <td class="text-center" ng-show="item.status == '10'">
                    未支付
                </td>
                <td class="text-center" ng-show="item.status == '20'">
                    结算申请
                </td>
                <td class="text-center" ng-show="item.status == '30'">
                    已支付
                </td>
                <td class="text-center">{{item.createTime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
                <td class="text-center">
                    <a ui-sref="bill-sendbydriver-details({billId: item.id})">明细</a>
                    <span ng-if="item.status == '10'"> | 未支付</span>
                    <a href="javascript:;" ng-click="settlement(item.id)" ng-if="item.status == '20'"> | 结算</a>
                    <a href="javascript:;" ng-click="showDlg(item.id)" ng-if="item.status != '30'"> | 奖罚</a>
                    <span class="default" ng-if="item.status == '30'"> | 已支付</span>
                </td>
            </tr>
            <tr ng-if="cBills.length <= 0">
                <td colspan="11">
                    <div class="hyc-color text-center">
                        暂无符合条件的数据
                    </div>
                </td>
            </tr>
        </table>
    </div>
</div>
<div ng-include="pageIncludeUrl" ng-if="cBills.length > 0"></div>